<@override name="title">业态管理</@override>
<@override name="viewbody">
<div class="row">
    <div class="col-md-12">
        <h3 class="page-title">
            业态管理
            <small>业态信息维护.</small>
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="${ctx}/admin/home">首页</a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">业态管理</a>
            </li>
        </ul>
    </div>
</div>
<div class="row">
    <div class="col-md-12">
        <div class="portlet box light-grey">
            <div class="portlet-title">
                <div class="caption">
                    <i class="fa fa-globe"></i>业态一览表
                </div>
            </div>
            <div class="portlet-body">
                <div class="table-toolbar">
                    <div class="btn-group">
                        <a id="format_create" href="${ctx}/admin/format/create" class="btn default green-stripe">
                            新增 <i class="fa fa-plus"></i>
                        </a>
                        <a id="foram_batch_delete" class="btn default yellow-stripe batchdelete"
                           data-action="${ctx}/admin/format/remove" data-tables="#format-list"
                           data-message="您确认删除所选择的业态信息么？">
                            删除 <i class="fa fa-ban"></i>
                        </a>
                    </div>
                </div>
                <table class="table table-striped table-bordered table-hover" id="format-list">
                    <thead>
                    <tr>
                        <th width="30"><input type="checkbox" name="checkall"></th>
                        <th width="30">序号</th>
                        <th>ID</th>
                        <th>名称</th>
                        <th width="40">级别</th>
                        <th>描述</th>
                        <th>分类</th>
                        <th>上级</th>
                        <th style="text-align: center" width="120">操作</th>
                    </tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>

        </div>
    </div>
</div>
<#--Template-->
<script id="action_template" type="text/x-handlebars-template">
    <a href="${ctx}/admin/format/edit/{{id}}" class="btn default blue-stripe" title="编辑">
        <i class="fa fa-edit"></i>
    </a>
    <a href="javascript:void(0);" class="btn default yellow-stripe" title="删除" data-hook="remove-action"
       data-action="${ctx}/admin/format/remove?DATA={{id}}"><i class="fa fa-trash-o"></i>
    </a>
</script>
<script id="rank_template" type="text/x-handlebars-template">
    <span class="label label-sm {{color}}">{{rankname}}</span>
</script>
</@override>

<@override name="viewparams">
g.actiontpl = '#action_template';
g.ranktpl = '#rank_template';
</@override>

<@override name="viewmodule">format_list</@override>
<@extends name="../_basic/main.ftl"></@extends>